<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GitHub风格简历</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --github-black: #24292e;
            --github-gray: #f6f8fa;
            --github-border: #e1e4e8;
            --github-blue: #0366d6;
            --github-green: #28a745;
            --github-purple: #6f42c1;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background-color: var(--github-black);
            color: white;
            padding: 16px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 20px;
        }

        .logo i {
            margin-right: 8px;
        }

        .nav-links {
            display: flex;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
            font-size: 14px;
        }

        .nav-links a:hover {
            color: #c8c8c8;
        }

        .main-content {
            display: flex;
            flex-wrap: wrap;
            margin-top: 20px;
            gap: 20px;
        }

        .profile-section {
            flex: 1;
            min-width: 300px;
        }

        .profile-card {
            background-color: white;
            border: 1px solid var(--github-border);
            border-radius: 6px;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
        }

        .avatar {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background-color: #eee;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .avatar i {
            font-size: 100px;
            color: #ccc;
        }

        .name {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .username {
            font-size: 18px;
            color: #666;
            margin-bottom: 15px;
        }

        .bio {
            margin-bottom: 15px;
            color: #586069;
        }

        .details {
            text-align: left;
            margin-top: 15px;
        }

        .detail-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .detail-item i {
            width: 20px;
            margin-right: 10px;
            color: #586069;
        }

        .content-section {
            flex: 3;
            min-width: 300px;
        }

        .tab-nav {
            display: flex;
            border-bottom: 1px solid var(--github-border);
            margin-bottom: 16px;
        }

        .tab-link {
            padding: 8px 16px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-right: 16px;
            font-size: 14px;
            color: #586069;
        }

        .tab-link.active {
            border-bottom-color: #f9826c;
            color: #24292e;
            font-weight: 500;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .repo-card, .experience-card {
            background-color: white;
            border: 1px solid var(--github-border);
            border-radius: 6px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .repo-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .repo-name {
            color: var(--github-blue);
            font-weight: 600;
            text-decoration: none;
        }

        .repo-name:hover {
            text-decoration: underline;
        }

        .repo-description {
            color: #586069;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .repo-meta {
            display: flex;
            font-size: 12px;
            color: #586069;
        }

        .repo-meta span {
            margin-right: 16px;
        }

        .repo-meta i {
            margin-right: 4px;
        }

        .language-color {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 4px;
        }

        .javascript { background-color: #f1e05a; }
        .python { background-color: #3572A5; }
        .html { background-color: #e34c26; }
        .css { background-color: #563d7c; }
        .java { background-color: #b07219; }

        .skill-item {
            margin-bottom: 12px;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .skill-bar {
            height: 8px;
            background-color: #e1e4e8;
            border-radius: 6px;
            overflow: hidden;
        }

        .skill-level {
            height: 100%;
            background-color: var(--github-green);
            border-radius: 6px;
        }

        .theme-switch {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 16px;
        }

        body.dark-theme {
            background-color: #0d1117;
            color: #c9d1d9;
        }

        .dark-theme .profile-card,
        .dark-theme .repo-card,
        .dark-theme .experience-card {
            background-color: #161b22;
            border-color: #30363d;
        }

        .dark-theme .repo-name {
            color: #58a6ff;
        }

        .dark-theme .tab-link.active {
            color: #f0f6fc;
        }

        .dark-theme .skill-bar {
            background-color: #30363d;
        }

        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .nav-links {
                display: none;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="nav-container">
            <div class="logo">
                <i class="fab fa-github"></i>
                <span>GitHub Resume</span>
            </div>
            <div class="nav-links">
                <a href="#overview">概述</a>
                <a href="#repositories">项目</a>
                <a href="#experience">经验</a>
                <a href="#skills">技能</a>
            </div>
            <button class="theme-switch" id="themeSwitch">
                <i class="fas fa-moon"></i>
            </button>
        </div>
    </header>

    <div class="container">
        <div class="main-content">
            <div class="profile-section">
                <div class="profile-card">
                    <div class="avatar">
                        <i class="fas fa-user"></i>
                    </div>
                    <h1 class="name">张小明</h1>
                    <div class="username">xiaoming-dev</div>
                    <p class="bio">全栈开发工程师 | 技术爱好者 | 开源贡献者</p>
                    <button class="follow-btn">关注</button>
                    
                    <div class="details">
                        <div class="detail-item">
                            <i class="fas fa-users"></i>
                            <span>89 位关注者 · 16 位关注中</span>
                        </div>
                        <div class="detail-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>北京, 中国</span>
                        </div>
                        <div class="detail-item">
                            <i class="fas fa-envelope"></i>
                            <span>xiaoming@example.com</span>
                        </div>
                        <div class="detail-item">
                            <i class="fas fa-link"></i>
                            <span>blog.xiaoming.dev</span>
                        </div>
                        <div class="detail-item">
                            <i class="fab fa-twitter"></i>
                            <span>@xiaoming_dev</span>
                        </div>
                    </div>
                </div>
                
                <div class="profile-card">
                    <h3>技能专长</h3>
                    <div class="skill-item">
                        <div class="skill-name">
                            <span>JavaScript/TypeScript</span>
                            <span>90%</span>
                        </div>
                        <div class="skill-bar">
                            <div class="skill-level" style="width: 90%"></div>
                        </div>
                    </div>
                    <div class="skill-item">
                        <div class="skill-name">
                            <span>React</span>
                            <span>85%</span>
                        </div>
                        <div class="skill-bar">
                            <div class="skill-level" style="width: 85%"></div>
                        </div>
                    </div>
                    <div class="skill-item">
                        <div class="skill-name">
                            <span>Node.js</span>
                            <span>80%</span>
                        </div>
                        <div class="skill-bar">
                            <div class="skill-level" style="width: 80%"></div>
                        </div>
                    </div>
                    <div class="skill-item">
                        <div class="skill-name">
                            <span>Python</span>
                            <span>75%</span>
                        </div>
                        <div class="skill-bar">
                            <div class="skill-level" style="width: 75%"></div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="content-section">
                <div class="tab-nav">
                    <div class="tab-link active" data-tab="overview">概述</div>
                    <div class="tab-link" data-tab="repositories">项目</div>
                    <div class="tab-link" data-tab="experience">工作经验</div>
                </div>
                
                <div id="overview" class="tab-content active">
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">README.md</a>
                        </div>
                        <div class="repo-description">
                            <h2>你好，我是张小明 👋</h2>
                            <p>一名拥有5年经验的全栈开发工程师，专注于构建高性能、可扩展的Web应用程序。</p>
                            
                            <h3>🔭 当前工作</h3>
                            <p>在TechCorp担任高级全栈工程师，负责开发下一代云原生应用平台。</p>
                            
                            <h3>🌱 正在学习</h3>
                            <p>WebAssembly、Rust和分布式系统设计。</p>
                            
                            <h3>💬 可以问我关于</h3>
                            <p>React生态系统、Node.js性能优化、RESTful API设计和数据库优化。</p>
                            
                            <h3>📫 如何联系我</h3>
                            <p>邮箱: xiaoming@example.com</p>
                            <p>微信: xiaoming_dev</p>
                        </div>
                    </div>
                    
                    <h3>精选项目</h3>
                    
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">react-dashboard-template</a>
                            <span class="repo-visibility">Public</span>
                        </div>
                        <div class="repo-description">
                            一个基于React的管理面板模板，具有响应式设计和丰富的UI组件。
                        </div>
                        <div class="repo-meta">
                            <span><span class="language-color javascript"></span> JavaScript</span>
                            <span><i class="far fa-star"></i> 128</span>
                            <span><i class="fas fa-code-branch"></i> 42</span>
                            <span>Updated 3 days ago</span>
                        </div>
                    </div>
                    
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">nodejs-auth-boilerplate</a>
                            <span class="repo-visibility">Public</span>
                        </div>
                        <div class="repo-description">
                            一个完整的Node.js认证样板，支持JWT、OAuth2.0和多因素认证。
                        </div>
                        <div class="repo-meta">
                            <span><span class="language-color javascript"></span> TypeScript</span>
                            <span><i class="far fa-star"></i> 86</span>
                            <span><i class="fas fa-code-branch"></i> 21</span>
                            <span>Updated 2 weeks ago</span>
                        </div>
                    </div>
                </div>
                
                <div id="repositories" class="tab-content">
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">ecommerce-platform</a>
                            <span class="repo-visibility">Public</span>
                        </div>
                        <div class="repo-description">
                            基于MERN栈（MongoDB, Express, React, Node.js）的全功能电子商务平台。
                        </div>
                        <div class="repo-meta">
                            <span><span class="language-color javascript"></span> JavaScript</span>
                            <span><i class="far fa-star"></i> 156</span>
                            <span><i class="fas fa-code-branch"></i> 65</span>
                            <span>Updated 1 day ago</span>
                        </div>
                    </div>
                    
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">data-visualization-toolkit</a>
                            <span class="repo-visibility">Public</span>
                        </div>
                        <div class="repo-description">
                            基于D3.js和React的数据可视化工具包，提供多种图表类型和交互功能。
                        </div>
                        <div class="repo-meta">
                            <span><span class="language-color javascript"></span> JavaScript</span>
                            <span><i class="far fa-star"></i> 92</span>
                            <span><i class="fas fa-code-branch"></i> 28</span>
                            <span>Updated 5 days ago</span>
                        </div>
                    </div>
                    
                    <div class="repo-card">
                        <div class="repo-header">
                            <a href="#" class="repo-name">task-management-api</a>
                            <span class="repo-visibility">Public</span>
                        </div>
                        <div class="repo-description">
                            使用NestJS构建的RESTful任务管理API，支持实时协作功能。
                        </div>
                        <div class="repo-meta">
                            <span><span class="language-color javascript"></span> TypeScript</span>
                            <span><i class="far fa-star"></i> 74</span>
                            <span><i class="fas fa-code-branch"></i> 19</span>
                            <span>Updated 2 weeks ago</span>
                        </div>
                    </div>
                </div>
                
                <div id="experience" class="tab-content">
                    <div class="experience-card">
                        <h3>高级全栈工程师 · TechCorp</h3>
                        <p class="date">2020年6月 - 至今</p>
                        <ul>
                            <li>领导开发了公司核心产品的重构，将性能提升了40%</li>
                            <li>设计和实现了微服务架构，提高了系统的可扩展性和可靠性</li>
                            <li>指导初级开发人员，进行代码审查和技术培训</li>
                        </ul>
                    </div>
                    
                    <div class="experience-card">
                        <h3>全栈开发工程师 · WebSolutions Inc.</h3>
                        <p class="date">2018年3月 - 2020年5月</p>
                        <ul>
                            <li>使用React和Node.js为客户开发了10+定制Web应用</li>
                            <li>优化数据库查询，将应用响应时间减少了30%</li>
                            <li>实施CI/CD流程，将部署时间从小时级缩短到分钟级</li>
                        </ul>
                    </div>
                    
                    <div class="experience-card">
                        <h3>前端开发工程师 · DigitalAgency</h3>
                        <p class="date">2016年8月 - 2018年2月</p>
                        <ul>
                            <li>将设计稿转换为响应式、跨浏览器兼容的网页</li>
                            <li>与设计师密切合作，确保UI的一致性和用户体验</li>
                            <li>维护和更新现有客户网站，添加新功能和改进</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 选项卡功能
        document.querySelectorAll('.tab-link').forEach(tab => {
            tab.addEventListener('click', () => {
                // 移除所有活动状态
                document.querySelectorAll('.tab-link').forEach(t => t.classList.remove('active'));
                document.querySelectorAll('.tab-content').forEach(c => c.classList.remove('active'));
                
                // 添加当前活动状态
                tab.classList.add('active');
                document.getElementById(tab.dataset.tab).classList.add('active');
            });
        });

        // 主题切换功能
        const themeSwitch = document.getElementById('themeSwitch');
        themeSwitch.addEventListener('click', () => {
            document.body.classList.toggle('dark-theme');
            
            if (document.body.classList.contains('dark-theme')) {
                themeSwitch.innerHTML = '<i class="fas fa-sun"></i>';
            } else {
                themeSwitch.innerHTML = '<i class="fas fa-moon"></i>';
            }
        });

        // 平滑滚动到锚点
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                if (targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    targetElement.scrollIntoView({
                        behavior: 'smooth'
                    });
                }
            });
        });
    </script>
</body>
</html>